﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLToolkit;
using BLToolkit.Mapping;
using BLToolkit.DataAccess;
using DAL;
namespace Entities.PBKT
{
	[TableName("ChiTietTranDau")]
	public class ChiTietTranDau : BaseEntity<ChiTietTranDau>
	{
		[MapField("MaLichTD"), PrimaryKey]
		public String MaLichThiDau { get; set; }
		[MapField("MaCauThu"), PrimaryKey]
		public String MaCT { get; set; }
		[MapIgnore]
		public String TenCauThu
		{
			get { return CauThu.Objects.GetById(MaCT).TenCauThu; }
		}
		[MapField("HinhThuc"), PrimaryKey]
		public int HinhThuc { get; set; }
		public int SoLuong { get; set; }
	//	[Association(OtherKey="IdGiaiDau", ThisKey="MaGD")]
		//public GiaiDau GiaiDaus { get; set; }
		[Association(OtherKey="MaCT", ThisKey="MaCT")]
		public CauThu CauThus { get; set; }
		

	}
}
